cmake_minimum_required(VERSION 3.0.2)
project(ros_stanley)
set(CMAKE_CXX_STANDARD 11)
## Find catkin and any catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs message_generation)

## Declare ROS messages and services
add_message_files(FILES stanley.msg)
#add_service_files(FILES AddTwoInts.srv)

## Generate added messages and services
generate_messages(DEPENDENCIES std_msgs)

## Declare a catkin package
catkin_package(CATKIN_DEPENDS roscpp rospy std_msgs message_runtime)


## include json config path

## Build talker and listener
include_directories(include ${catkin_INCLUDE_DIRS})
include_directories(../../../devel/include) ##include stanley msg header
include_directories(${CMAKE_SOURCE_DIR}/include/eigen)
include_directories(${CMAKE_SOURCE_DIR}/include)


add_executable(n_stanley_controller src/n_stanley_controller.cpp
                                    src/stanley_controller.cpp)
target_link_libraries(n_stanley_controller ${catkin_LIBRARIES})
add_dependencies(n_stanley_controller ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
